.nft-container {
    padding: 1rem 1rem 7rem;
    min-height: 100vh;
    box-sizing: border-box;
    background: url("../images/nft_bg.png");
    background-size: 100% auto;
    background-repeat: no-repeat;

    .blind-box {
        position: relative;
        @include flex-center-center();
        flex-direction: column;
        aspect-ratio: 1/1;

        .left-link {
            position: absolute;
            height: 3rem;
            line-height: 3rem;
            top: 0rem;
            left: 0;
            z-index: 10;
            @include flex-center-start();

            .name {
                font-size: 1rem;
                color: #fff;
                margin-right: .8rem;
            }

            img {
                width: 2rem;
                height: 2rem;
            }
        }

        .nft-total {
            position: absolute;
            height: 3rem;
            line-height: 3rem;
            top: 0rem;
            right: 0;
            @include flex-center-start();

            .name {
                font-size: 1rem;
                color: #fff;
            }

            .num {
                padding: 0 .4rem;
                font-size: 1.2rem;
                color: #fdc004;
            }

            .unit {
                font-size: 1rem;
                color: #91929c;
            }
        }

        .open-box {
            position: relative;
            width: 70%;
            aspect-ratio: 1/1;

            .blind-box {
                position: absolute;
                left: 50%;
                margin-left: -5.5rem;
                bottom: 2rem;
                width: 11rem;
                height: 11.1rem;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .blind-box-card {
                position: absolute;
                left: 50%;
                margin-left: -4rem;
                bottom: 9rem;
                width: 8rem;
                height: 14.1rem;
                z-index: 2;
                animation: blindBoxCardAnimation 1.4s linear 2s infinite alternate;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .opne-btn {
            width: 100%;
            text-align: center;

            .btn-num-box {
                @include flex-center-center();
            }

            .top-box {
                width: 100%;
                height: 4rem;
                line-height: 4.5rem;
                background: url(../images/nft_btn_top.png);
                background-size: 100% 100%;
                background-repeat: no-repeat;
                font-size: 1.2rem;

                .name {
                    color: #fff;
                }

                .value {
                    font-weight: bold;
                    margin-left: 1rem;
                    color: #fdc004;
                }
            }

            .btn {
                margin-left: 1rem;
                width: 15rem;
                height: 4.5rem;
                @include flex-center-center();
                flex-direction: column;
                background: url(../images/nft_btn.png);
                background-size: 100% 100%;
                background-repeat: no-repeat;


                .name {
                    line-height: 1.6rem;
                    font-size: 1.4rem;
                    font-weight: bold;
                    color: #FFF0E2;
                    text-shadow: 0 2px 2px #a66500;
                }

                .desc {
                    position: relative;
                    font-size: 1.2rem;
                    height: 1.6rem;
                    border-radius: .8rem;
                    padding-left: 1rem;
                    line-height: 1.6rem;

                    // background-color: #482d00;
                    // box-shadow: inset 0 0 4px 4px rgba(0, 0, 0, .8);
                    .logo {
                        width: 2rem;
                        height: 2rem;
                        position: absolute;
                        left: -.8rem;
                        top: 50%;
                        margin-top: -1rem;
                        background-color: #fff;
                        border-radius: 50%;

                        img {
                            width: 2rem;
                            height: 2rem;
                        }
                    }

                    .num {
                        padding-left: .4rem;
                        font-weight: bold;
                        color: #fe0000;
                    }

                    .usdt {
                        margin-left: .2rem;
                        color: #090700;
                    }
                }
            }
        }
    }

    .nft-card-list {
        position: relative;
        margin-top: .8rem;
        padding: 0 .8rem 5rem;

        .card-list {
            @include flex-center-start();
            flex-wrap: wrap;

            .item {
                width: 32%;
                margin-top: .8rem;
                margin-right: 2%;

                &:nth-of-type(3n) {
                    margin-right: 0;
                }

                .item-box {
                    @include flex-center-center();
                    flex-direction: column;
                    padding: .8rem .4rem .2rem;
                    border-radius: 1rem;
                    background-color: #080808;
                    border: 1px solid #3c3c3c;

                    .card-box {
                        position: relative;
                        width: 80%;
                        aspect-ratio: 3/4;
                        border-radius: .4rem;

                        img {
                            width: 100%;
                            height: 100%;
                        }

                        .level {
                            position: absolute;
                            padding: .4rem 1rem .4rem .4rem;
                            font-size: .8rem;
                            border-radius: 0 0 4rem 0;
                            background-color: rgba(0, 0, 0, .8);
                        }
                    }

                    .hashrate {
                        margin-top: .6rem;
                        height: 2rem;
                        line-height: 2rem;

                        @include text-ellipsis-single();

                        .num {
                            font-size: 1rem;
                            color: #fff;
                        }

                        .unit {
                            font-size: .8rem;
                            margin-left: .4rem;
                            color: #978e8e;
                        }
                    }

                    &.has-card {
                        background: url(../images/nft_card_bg.png);
                        background-size: 100% 100%;
                        background-repeat: no-repeat;

                        .card-box {
                            border-radius: .8rem;
                            overflow: hidden;
                            box-shadow: 0 0 6px 3px #ffde6c;
                        }
                    }

                    &.no-card {
                        .card-box {
                            @include flex-center-center();
                            background: url(../images/nft_card_border.png);
                            background-size: 100% 100%;
                            background-repeat: no-repeat;
                            background-color: #1d1d1d;

                            img {
                                width: 4rem;
                                height: 4rem;
                            }
                        }
                    }
                }
            }
        }

        .combine-box {
            position: absolute;
            @include flex-center-between();
            right: 0;
            bottom: 0;
            left: 0;
            height: 6rem;
            padding: .8rem;
            box-sizing: border-box;
            border-radius: 0 0 2rem 2rem;
            border-top: 1px solid #7a7a7a;
            background: linear-gradient(to bottom, #343434 0, #1e1e1e 88%);

            .card-box {
                width: 3rem;
                height: 4.5rem;
                @include flex-center-center();
                background: url(../images/silver_box.png);
                background-size: 100% 100%;
                background-repeat: no-repeat;
                text-align: center;
                color: #afbebf;

                &.gold {
                    background: url(../images/gold_box.png);
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                    color: #d3a710;
                }
            }

            .symbol-box {
                img {
                    width: 2rem;
                    height: 2rem;
                }
            }

            .btn-box {
                .btn {
                    width: 9rem;
                    height: 4rem;
                    padding: 0;
                    outline: none;
                    line-height: 4rem;
                    text-align: center;
                    font-size: 1.2rem;
                    font-weight: bold;
                    background: url(../images/combine_btn.png);
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                    color: #864703;
                    text-shadow: 0 1px 0 #ffebb0;
                }
            }
        }
    }
}

.blind-box-mechanism {
    line-height: 1.8rem;

    .highlight {
        color: #daa126;
    }

    .hd {
        @include flex-center-between();
        margin-top: .8rem;
        padding: .6rem;
        font-size: 1rem;
        line-height: 1rem;
        background-color: #3b3b3b;
    }

    .bd {
        .item {
            padding: .6rem;
            border-bottom: 1px solid #3b3b3b;
            @include flex-center-between();

            .th4 {
                color: #d39c24;
            }

            &:nth-of-type(1) {
                .th1 {
                    color: #575757;
                }
            }

            &:nth-of-type(2) {
                .th1 {
                    color: #12c705;
                }
            }

            &:nth-of-type(3) {
                .th1 {
                    color: #0043cc;
                }
            }

            &:nth-of-type(4) {
                .th1 {
                    color: #a003a6;
                }
            }

            &:nth-of-type(5) {
                .th1 {
                    color: #daa126;
                }
            }

            &:nth-of-type(6) {
                .th1 {
                    color: #ff0000;
                }
            }
        }
    }

    .bd,
    .hd {
        .th1 {
            width: 25%;
            @include text-ellipsis-single();
        }

        .th2 {
            width: 25%;
            @include text-ellipsis-single();
        }

        .th3 {
            width: 25%;
            @include text-ellipsis-single();
        }

        .th4 {
            width: 25%;
            text-align: right;
            @include text-ellipsis-single();
        }
    }

}

// 合并卡牌
.combine-modal-container {
    .card-list {
        @include flex-center-between();

        .card-box {
            width: 12rem;
            aspect-ratio: 3/4;
            border-radius: .4rem;
            @include flex-center-center();
            flex-direction: column;
            background: url(../images/nft_card_border.png);
            background-size: 100% 100%;
            background-repeat: no-repeat;
            background-color: #1d1d1d;

            img {
                width: 5rem;
                height: 5rem;
            }

            .name {
                font-size: 1.2rem;
                color: #444444;
                text-shadow: 0 1px 0 #000;
            }
        }
    }

    .desc {
        margin-top: 2rem;
        font-size: 1.2rem;
        line-height: 2rem;
        color: #fff;
    }

    .btn-box {
        margin-top: 2rem;
        text-align: center;

        .btn {
            margin: 0 auto;
            width: 16rem;
            height: 6rem;
            padding: 0;
            outline: none;
            line-height: 5.4rem;
            text-align: center;
            font-size: 1.4rem;
            font-weight: bold;
            background: url(../images/combine_btn.png);
            background-size: 100% 100%;
            background-repeat: no-repeat;
            color: #864703;
            text-shadow: 0 1px 0 #ffebb0;
        }
    }
}

.nft-bottom-box {
    padding: 2rem 1rem;
    @include flex-center-between();
    .num-box {
        width: 16rem;
        height: 3rem;
        @include flex-center-center();

        button {
            width: 3rem;
            &:focus,
            &:focus-visible {
                outline: none;
            }
        }

        input {
            padding: 0 .6rem;
            width: 100%;
            height: 3rem;
            text-align: center;
            line-height: 3rem;
            border-radius: 1.5rem;
            box-sizing: border-box;
        }
    }
    .submit-btn{
        width: 15rem;
        height: 4.5rem;
       @include flex-center-center();
        background: url(../images/nft_btn.png);
        background-size: 100% 100%;
        background-repeat: no-repeat;
        font-size: 2rem;
        color: #fff;
    }
}